package com.nl.controller.xuyi.bean.linepointcheckbo;

import lombok.Data;
import org.springframework.util.StringUtils;

/**
 * @author zhangheng
 * @date 17:59 2020/9/27
 */
@Data
public class LinePointCheckPo {
	private String  checkId;
	private String  type;
	private String  typeName;
	private String  lineId;
	private String  lineName;
	private String  pointId;
	private String  pointName;
	private String  bdItdu;
	private String  checkState;
	private String  checkStateName;
	private String  createTime;
	private String  modifyTime;
	private String  remark;
	private String  operator;
	private String  checkOperator;
	private String  gpsItdu;
	private String  checkRemark;

	public String getModifyTime() {
		if (StringUtils.isEmpty(modifyTime)){
			modifyTime = "/";
		}
		return modifyTime;
	}

	public String getCheckOperator() {
		if (StringUtils.isEmpty(checkOperator)){
			checkOperator = "/";
		}
		return checkOperator;
	}

	public String getCheckStateName() {
		switch (checkState){
			case "0":
				this.checkStateName = "待审核";
				break;
			case "1":
				this.checkStateName = "审核通过";
				break;
			case "2":
				this.checkStateName = "审核未通过";
				break;
			default:break;
		}
		return checkStateName;
	}
}
